<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page trimDirectiveWhitespaces="true" %>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <base href="<%=basePath%>">
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">

    <title>${param.title == null ? "图腾 - 智能图腾管理系统" : param.title}</title>

    <meta name="keywords"
          content="${param.keyword == null ? "图腾, 管理系统" : param.keyword}">
    <meta name="description"
          content="${param.desc == null ? "图腾" : param.desc}">
    <meta name="author" content="北体高科（北京）科技有限公司">

    <!--[if lt IE 9]>
    <meta http-equiv="refresh" content="0;ie.html" />
    <![endif]-->

    <link href="Content/favicon.ico?v=${static_resource_version}" rel="shortcut icon" type="image/x-icon">

    <link href="Content/lib/bootstrap/bootstrap.min.css?v=${static_resource_version}" rel="stylesheet" type="text/css">
    <link href="Content/lib/font-awesome/font-awesome.min.css?v=${static_resource_version}" rel="stylesheet" type="text/css">
    <link href="Content/lib/animate/animate.min.css?v=${static_resource_version}" rel="stylesheet" type="text/css">
    <link href="Content/lib/hplus.css?v=${static_resource_version}" rel="stylesheet" type="text/css">
    <style type="text/css">
        .profile-element .profile-header {
            background-color: rgba(255, 255, 255, 0.8);
            width: 70px;
            height: 70px;
            border-radius: 50%;
            margin: 0 auto;
        }
        .profile-element .profile-header img {
            width: 100%;
        }
        .profile-element .dropdown-toggle {
            display: block;
            margin-top: 6px;
        }

        .nav .open > a, .nav .open > a:hover, .nav .open > a:focus {
            background: inherit;
        }
    </style>
</head>

<body class="fixed-sidebar full-height-layout gray-bg pace-done" style="overflow:hidden">

<div id="wrapper">
    <!--左侧导航开始-->
    <nav class="navbar-default navbar-static-side" role="navigation">
        <div class="nav-close"><i class="fa fa-times-circle"></i></div>
        <div class="sidebar-collapse">
            <ul class="nav" id="side-menu">
                <li class="nav-header">
                    <div class="dropdown profile-element">
                        <div class="profile-header">
                            <img alt="图腾+" class="img-circle"
                                 src="Content/images/male.png?v=${static_resource_version}">
                        </div>
                        <a href="javascript:void(0);" data-toggle="dropdown" class="dropdown-toggle"
                            aria-expanded="false">
                        <span class="clear text-center">
                            <span class="block m-t-xs" style="display: none;">
                                <strong>图腾+</strong>
                            </span>
                            <span class="text-muted text-xs block">${loginUserIn.operatorName}<b class="caret"></b></span>
                        </span>
                        </a>
                        <ul class="dropdown-menu animated fadeInRight m-t-xs">
                            <li><a class="J_menuItem" href="<%=basePath%>passport/modifyPassword">修改密码</a></li>
                            <li class="divider"></li>
                            <li><a href="<%=basePath%>passport/logout">安全退出</a></li>
                        </ul>
                    </div>
                    <div class="logo-element">图腾+</div>
                </li>
                <li class="line dk"></li>

                <li>
                    <a class="J_menuItem" href="<%=basePath%>home/dashboard">
                        <i class="fa fa-home"></i>
                        <span class="nav-label">工作面板</span>
                    </a>
                </li>
                <li class="line dk"></li>

                <c:forEach var="item" items="${menu}">
                    <li>
                        <a href="javascript:;">
                            <i class="fa fa-${item.menuCode}"></i>
                            <span class="nav-label">${item.menuName}</span>
                            <span class="fa arrow"></span>
                        </a>
                        <ul class="nav nav-second-level">
                            <c:forEach var="child" items="${item.menuList}">
                                <c:if test="${child.isQuick == 1 || loginUserIn.operatorMobile == 'admin'}">
                                <li><a class="J_menuItem" href="<%=basePath%>${child.menuUrl}">${child.menuName}</a></li>
                                </c:if>
                            </c:forEach>
                        </ul>
                    </li>
                    <li class="line dk"></li>
                </c:forEach>
            </ul>
        </div>
    </nav>
    <!--左侧导航结束-->

    <!--右侧部分开始-->
    <div id="page-wrapper" class="gray-bg dashbard-1">
        <div class="row border-bottom">
        </div>
        <div class="row content-tabs">
            <button class="roll-nav roll-left J_tabLeft"><i class="fa fa-backward"></i></button>
            <nav class="page-tabs J_menuTabs">
                <div class="page-tabs-content">
                    <a href="javascript:;" class="active J_menuTab" data-id="<%=basePath%>home/dashboard">工作面板</a>
                </div>
            </nav>
            <button class="roll-nav roll-right J_tabRight"><i class="fa fa-forward"></i></button>
            <div class="btn-group roll-nav roll-right">
                <button class="dropdown J_tabClose" data-toggle="dropdown">关闭操作<span class="caret"></span></button>
                <ul role="menu" class="dropdown-menu dropdown-menu-right">
                    <li class="J_tabShowActive"><a>定位当前选项卡</a></li>
                    <li class="divider"></li>
                    <li class="J_tabCloseAll"><a>关闭全部选项卡</a></li>
                    <li class="J_tabCloseOther"><a>关闭其他选项卡</a></li>
                </ul>
            </div>
            <a href="<%=basePath%>passport/logout" class="roll-nav roll-right J_tabExit">
                <i class="fa fa-sign-out"></i> 退出
            </a>
        </div>
        <div class="row J_mainContent" id="content-main">
            <iframe class="J_iframe" name="iframe0" width="100%" height="100%" src="<%=basePath%>home/dashboard" frameborder="0"
                    data-id="<%=basePath%>home/dashboard" seamless></iframe>
        </div>
        <<%--div class="footer">
            <div class="pull-right">Copyright &copy; 2017. 北体高科（北京）科技有限公司 All rights reserved.</div>
        </div>--%>
    </div>
    <!--右侧部分结束-->
</div>

<!-- 全局js -->
<script src="Content/lib/jquery/jquery-1.12.3.min.js?v=${static_resource_version}"></script>
<script src="Content/lib/bootstrap/bootstrap.min.js?v=${static_resource_version}"></script>
<script src="Content/lib/plugins/metisMenu/jquery.metisMenu.js?v=${static_resource_version}"></script>
<script src="Content/lib/plugins/slimscroll/jquery.slimscroll.min.js?v=${static_resource_version}"></script>
<script src="Content/lib/plugins/layer/layer.min.js?v=${static_resource_version}"></script>
<script src="Content/lib/plugins/hplus.min.js?v=${static_resource_version}"></script>

<!-- 第三方插件 -->
<script src="Content/lib/plugins/contabs.min.js?v=${static_resource_version}"></script>
<script src="Content/lib/plugins/pace/pace.min.js?v=${static_resource_version}"></script>
</body>
</html>

